<?php        
    class LocationModel extends Model {        
        public static $classDesc = "Location";
        
        public static $keyDesc = array(
            "id"        => "ID",
            "hashid"    => "Hashid",
            "userid"    => "User ID",
            "location"  => "Location",
            "updated"   => "Updated",
            "rowstamp"  => "Created"
        );
        
        public function __construct($id = null) {
            $this->_table = "location";                        
            parent::__construct($id);
            
            # Tekstikenttien minimipituus
            parent::$_schema["location"]["location"]["minlength"] = 1;
        }
    }